package thread.basepackage.t11;

/**
 * 优先级的继承特性
 * Created by cuihao on 2017/11/29.
 */
public class Run21 {
    public static void main(String[] args) {
        System.out.println("main thread begion priority = " + Thread.currentThread().getPriority());
        Thread.currentThread().setPriority(6);
        System.out.println("main thread begion priority = " + Thread.currentThread().getPriority());
        MyThread thread = new MyThread();
        thread.start();
    }
}

/*
 *
 * main 调用了 thread 所以thread的优先级也是6 thread调用了thread2，所以thread2的优先级也是6
 * */